import BasicLayout from '@/layouts/basic-layout';

const meta = {
    auth: true
};

const pre = 'vacation-';

export default {
    path: '/vacation',
    name: 'vacation',
    redirect: {
        name: `${pre}empLeave`
    },
    meta,
    component: BasicLayout,
    children: [
        {
            path: 'empLeave',
            name: `${pre}empLeave`,
            meta: {
                ...meta,
                title: '员工请假处理'
            },
            component: () => import('@/pages/vacation/empLeave')
        }, {
            path: 'empLeave/empLeave-add',
            name: `empLeave-add`,
            meta: {
                ...meta,
                title: '员工请假-新增'
            },
            component: () => import('@/pages/vacation/empLeave/empLeave-add')
        }, {
            path: '/empLeave/yes-detail',
            name: `empLeave-yesDetail`,
            meta: {
                ...meta,
                title: '员工请假-审核详情'
            },
            component: () => import('@/pages/vacation/empLeave/yes-detail')
        }, {
            path: '/empLeave/no-detail',
            name: `empLeave-noDetail`,
            meta: {
                ...meta,
                title: '员工请假-申请详情'
            },
            component: () => import('@/pages/vacation/empLeave/no-detail')
        }, {
            path: '/vacation/empLeave/goReview',
            name: `empLeave/goReview`,
            meta: {
                ...meta,
                title: '员工请假-审核'
            },
            component: () => import('@/pages/vacation/empLeave/goReview')
        },
        /*加班*/
        {
            path: 'workOvertime',
            name: `${pre}workOvertime`,
            meta: {
                ...meta,
                title: '加班'
            },
            component: () => import('@/pages/vacation/workOvertime')
        }, {
            path: 'workOvertime/workOvertime-add',
            name: `workOvertime-add`,
            meta: {
                ...meta,
                title: '加班-新增'
            },
            component: () => import('@/pages/vacation/workOvertime/workOvertime-add')
        }, {
            path: '/workOvertime/yes-detail',
            name: `workOvertime-yesDetail`,
            meta: {
                ...meta,
                title: '加班-审核详情'
            },
            component: () => import('@/pages/vacation/workOvertime/yes-detail')
        }, {
            path: '/workOvertime/no-detail',
            name: `workOvertime-noDetail`,
            meta: {
                ...meta,
                title: '加班-申请详情'
            },
            component: () => import('@/pages/vacation/workOvertime/no-detail')
        }, {
            path: '/vacation/workOvertime/goReview',
            name: `workOvertime/goReview`,
            meta: {
                ...meta,
                title: '加班-审核'
            },
            component: () => import('@/pages/vacation/workOvertime/goReview')
        }, {
            path: 'business',
            name: `${pre}business`,
            meta: {
                ...meta,
                title: '出差信息'
            },
            component: () => import('@/pages/vacation/business')
        }, {
            path: 'business/business-add',
            name: `business-add`,
            meta: {
                ...meta,
                title: '出差-新增'
            },
            component: () => import('@/pages/vacation/business/business-add')
        }, {
            path: '/business/yes-detail',
            name: `business-yesDetail`,
            meta: {
                ...meta,
                title: '出差-审核详情'
            },
            component: () => import('@/pages/vacation/business/yes-detail')
        }, {
            path: '/business/no-detail',
            name: `business-noDetail`,
            meta: {
                ...meta,
                title: '出差-申请详情'
            },
            component: () => import('@/pages/vacation/business/no-detail')
        }, {
            path: '/vacation/business/goReview',
            name: `business/goReview`,
            meta: {
                ...meta,
                title: '出差-审核'
            },
            component: () => import('@/pages/vacation/business/goReview')
        },
    ]
};
